var shortCut;

function keyUpEventListener(e)
{
	var code = (+e.ctrlKey) + "" + (+e.shiftKey) + "" + (+e.altKey) + e.which;

	if(shortCut == code){
		var port = chrome.extension.connect({
			name: "LocalReadLater"
		});

		port.postMessage({
			command: "addToUnReadedList"
		});
	}
}

chrome.extension.sendRequest({type: "shortcut"}, function(response)
{
	shortCut = response;
});

document.addEventListener("keyup", keyUpEventListener);
